Modified implementation of copy() to conform to Java 7 specs. Removed faulty chown in copyFileAttributes().