Only get git hash when release build so debug build won't slow down but still checking for empty file in debug