use Java 7 NIO to resolve baseDir when building LaunchConfig