Added option to use root public dir