fix mishap in apply_patch, os.rename is now sh.mv

Instead of os.rename I am now using sh.mv because in my case the /tmp
directory is mounted tmpfs and os.rename doesn't support moving files
to different partition.

Now I am curious, I applied the patch using `patcher` from diffball
but the resulting file does not match its md5 signature :s