added -n to WP_DIR check