install.py: apply patches and copy the source code into typechef source tree