hooks: specify working dir for forked processes