Get the commit from the build directory, not the PWD