prepend_path and append_path now require their args to be directories.