This may happen with certain checkout configurations (such as on our CI boxes). Also, rename the variables to be clearer about what they reference.