Fixed nasty bug triggered by shell-dependency of child invocation.