Move the hook before the fork

This way the hook is send to the real PRoot process and not the fork.