Use getAbsolutePath in copy.