Can you change /bin/sh to ${stdenv.shell}?