change basedir detection to make it possible to invoke vagrant command from any directory of the project.