Fixed file copying for linux