masher: Ensure stage_dir is not None
tests: Test our repo sanity checking code
tests: Test our masher repo staging