Attempt to fix Unix issues with getAbsolutePath().