Please tell me that the metal flex I see in the last photo is a TEMPORARY hookup:

(from http://healthybuildingscience.com)

and that you are going to replace it with some type of LT conduit or UF cable!