Fix some bytes/str conversions, and simplify directory handling in run().
Pull-Request has been closed by mikeb
Fix some bytes/str conversions, and simplify directory handling in run().