Use realpath to resolve symplinks