Validation improvements.

- Ensure the directory path specified in the configuration exists.
- When parsing the configuration object from a file, check the path for
existence before wrapping it within a try-catch.