TEZ-1881. Fix file permissions. Setup initial test-patch script for TEZ-1313. (hitesh)