Add function mypatch which checks if the patch was already applied before applying a patch. If the patch wasn't applied do it otherwise skip the patch. Use the function in all installation scripts. Fixes #37.