EXECUTION VERSION CREDIT AGREEMENT dated as of July 31, 2007