Merge pull request #378 from koenpunt/ci

Added travis config, fixed tests for use on travis
Merge pull request #377 from koenpunt/remove-obscure-echo-test

Replaced echo for printf when using formatted strings
Fix NVM_DIR discovery