Attempt to fix issue #135: use Java7 nio POSIX permissions instead of forking and running chmod.

This is an attempt to fix issue #135 by using the Java7 POSIX permissions interface in nio.