Add error handling for os.Getwd() and build.ImportDir()