Where `realpath` is safer, it can make life very difficult for testing.