5.3 compatibility fix for access 'basedir' of dict