Recognize home directory in cwd even if it differs from $HOME