Building scripts should also conform to posh or specify /bin/bash. Some time ago I've rebuild one package (gaim-extendedprefs or gaim-encryption, I don't remember) and it failed because my /bin/sh is a link to dash.