Improved error checking and taken into account more possible scenarios

Patch script now correctly handles cases where files have been both added and modified within the given revision range. It will now also check if folders exist before attempting to create, and will check if patch_notes.txt exists before trying to move it.