Moved source patching above script running.