further POSIX improvements, actually runs on dash now