tests: respect $HOME if possible
Merge pull request #30 from pinotree/home-tests

tests: respect $HOME if possible