Added debugging stuffs and possible fixes (they failed) for the issues with Linux patching.