Made POSIX compatible to work with dash