add custom folder support for static middleware + remove DIRs settings