Better handling of odd situations in pP.py

Don't explode if failed = False and folder = True