Fixed bug that deleted .git in build