gvfs remote file, rvm nvm env

remove git repository check for gvfs remote file
refactoring the rvm nvm environment init