added support for 'invoke docs -b' for linux users

Use the `in` operator to check membership within a dict.