Include file needed for path resolution
Handle realpath() failure gracefully