Expand system variables Unix style
