Modified getAbsolutePath() to also make it canonical.