Remove dependency on path.py