This should probably be `#{Regexp.escape(export_dir2)}` in the regex bit.