a3680b Linux build: Properly detect if build script belongs to git repository

Authored and Committed by konstantin 10 years ago
    Linux build: Properly detect if build script belongs to git repository