Debug workflow

+ fixup pimpathon withTempDir to make tests work on mac.