[COOK-3638] do not use bashisms

https://tickets.opscode.com/browse/COOK-3638