Use absolute paths for files.isValidPath