Update TemporaryFolder.newFolder() to give a better error message if a path contains a slash

Please review the fix and let me know if it does good.
Are you talking about the line 'tempFolder.create()' . If not, can you please specify which line you are talking about?