Made extension and static dir configurable
merge