Avoid using realpath in tests