* glob: add is_glob util method * perf: do not execute glob for non-glob copy_to_directory root_paths/replace_prefix params * perf: add common path matching shortcuts * fix: disallow invalid empty glob expressions