rewrite function for more clean.
fix STDOUT message tests.
Fix it some travis.ci test.

* Fix locale en_US to en_US.UTF-8 because travis-ci isn't have support

* Fix STOUD test of *enviroment* to *environment*
* added test to use only major version
* fi STDOUT error message in travi-ci.
Change environmento to en_US (ISO-8859-1) and revert tests to use latin1
Fix return test "pgvm use 999"
Merge pull request #35 from fike/tf_local

Fix it some travis.ci test.
Merge branch 'master' of https://github.com/guedes/pgvm into n_issue_3
Update branch by lastest upstream master branch
Update branch by lastest guedes master branch.
Update test/pgvm_comment_test.sh to latin1 tests.