Add support for overriding public directory.