do not assume that the build happens in git repo or archived git repo

fixes #712