Redmine#4482: simplify staging further by using shell facilities

see https://cfengine.com/dev/issues/4482 and https://cfengine.com/dev/issues/3406