support solaris
change submodule url
make PROMPT_HOST portable and tidy PROMPT_DIR
move bash-completion from bashrc to bashrc-local and add version check for bash-completion
get submodules by curl if git is unavailable