Fixed a problem in munit with resetting the working dir and with debug printing.