Fixed non bash shells compatibility