Inline the 'diagnose' pre-checks into the fork_exec_rpc function

Signed-off-by: David Scott <dave.scott@citrix.com>