adds the patches as shell scripts for #27
sets much smarter checks on the install