Use Junit's temporary folder rule to replace temp files and folders