Remove references to non-existent dirs