fix running under dash and possible other posix shells
	tested with dash, ksh, zsh and bash itself