Setup now applies patches

1. Also fixed bug while extracting archives.