[PATCH PM-QA 01/18] functions: Remove bashisms in function scripts