Can you try it without quotes again and show the code and the error that you get (if any)? This should not be implementation-specific as only Bourne Shell features are used and /bin/sh should always point to a Bourne-compatible shell (guaranteed by POSIX, I believe).