In the event such construction is being performed by any contractor or person having general supervision of such construction other than the owner of such real property, then it shall be the responsibility of such contractor to obtain any permits required under this Act and such contractor or person having charge or supervision of such construction shall be liable for any and all penalties for noncompliance with the provisions of this Act, together with the owner or owners of the real property upon which such improvement is located.