Removes all dependencies on os.getcwd()
Adds File.get_version_by_sha and test.