Changed variable name from "public_html" to "public_dir"