chdir into project root before attempting to get git hash