changed command to use getCanonicalPath()