RF: allow for empty PYTHONPATH in command maker

Test for `run_mod_cmd` relied on PYTHONPATH being defined; it is in
usual use in the test commands, and in my own setup, but not in general;
guard against empty PYTHONPATH.