Added file exists check to git script