Fix detach after chdir to an app's location