Fix #184, Use `file.getAbsoluteFile().getParentFile()` to prevent NPE on Win7