add support for curly brackets with the --pattern option, fixes #868