adjustments to make command compatible with bin/sh