use cmd_type instead of type with capture as it's a bit more explicit and means there's no chance of colliding w/ python's type function
check for WP_CORE_DIR and if it's set, assume there's already a wordpress install there