Don't enable staticdir if static isn't set in the config