Support multiple environments

fix #4 multiple environments
fix #5 test of phantomjs
fix #6 path of '/home/git' or '/vagrant'