Changed get-home-dir to use new util func.
Updated file tests.
Added new dir util funcs & updated others to use them.