Fix path to use realpath