add missing quotes around $WP_CORE_DIR. see #310