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