Adding support for appDir config directive