Create public directory if necessary.