add supports for function in buildTypes

remove version option and pass options as scope for call of buildType
function
typo
Merge branch 'fix_typo'