simplify home expansion in completion, fix issue on osx (fix #27)

@wjwwood Please review / test on OS X.