Use getCanonicalPath() to ensure a platform specific path.