Enhancing path handling

Added support for the use of relative home paths on OSX. Previously the
~/ would fail valid path check.