Make sure symlinks are followed in invert.py