librecipe-generic: correction of bash code for /bin/sh compatibility