better upload directory handling
fix Exception instantiation with keyword arg