Avoid build.head? in the DSL
Use official API for disabling shallow clones
Avoid ARGV where possible