Use platform-agnostic method for determining home directory