Get the commit hash by env var first for platforms like heroku that remove git history