Further fix for bash < 4 regex compatibilty