Restore non-mnexec pid detection for background commands