Fixing File.getCanonicalPath()/File.getAbsolutePath() mismatch