Make script compatible with dash