Wrapped the curl package definition with a check to see if it is already defined.