added -n flag to WORDPRESS_DIR set and added some debugging lines to build