rms mock_pre_package_cmds and fixes docstring on query_is_nightly