adding createTempDirectory util functions; better regex unit testing