Fix license check for examples

The recent additional of license header checking broke the examples because they tried to validate the license on the source files when simply running the examples.