changed command dir to /tmp, to solve issues with some shells