ruby implementation of unix copy command, ls, pwd, and find rubyRegex folderToSearch