Better r2 -P and refactor 'r_core_patch' to accept a string instead of file name