#347. Fixed tmppath with schemas

Patch with fix and test
Agree that would make sense, but it was like that before this patch too. Migrating the config to another section could be a different commit, and should probably start by deprecating the old setting for a couple of versions so we don't break people's setups