getPath function

Determine the path to package example directories.