Shell multi-platform common functions.