This fixes an issue with staging with pkg_install since it uses pkg_create -S which doesn't seem to work properly with "@cwd" resetting to -p