Update build.gradle

Introduced support of rootFolder parameter.