add copy-folder function for ubuntu