Changed input transform on build file to accept a patch upto 10 chars.

Unit tests too.