Make sure 'tmp' is in the remote tmp dirname to ensure correct cleanup