Use realpath rather than pwd