Implement clone_depth setting in build_settings, to allow shallow clones...

.... Fixes #391