small fix for bash3 and below