Fix some /bin/sh weirdness old version works on current but not on 9.1

Ticket:		[e8eec4b446]
Tested by:	antoine