Fix /tmp dir access right handle for pre/post scripts