add supports for function in buildTypes

remove version option and pass options as scope for call of buildType
function
Merge pull request #18 from nrako/add_buildtypes

Add supports for function in buildType