fixed compatibility Gradle v1.8 and previous; better handling of source set default value