use realpath() to resolve symlinks