catch possible sysconf() error in getHomeDirectory() (Linux only)