Fix posix shell compatibility