command_helpers.rb: move `set_file_and_dir_locals` from BaseHelpers

Partially fixes (probaby not at all) #705 (Helpers can't be used on
their own)

`set_file_and_dir_locals` is used *only* in commands.