Hacky fix for bash < v4