Fix exclude example. example() only works with directories