Fix logic/syntax error checking for child paths of home directory

Fixes #5