DOCS-2278 use shell helpers instead of commands in final step