fix fetching of HOME on posix