Improved handling of configfile and initfile when used with perms