Filter out hidden files from globbing

Also, adding selenium test examples only if an `include.js` file exists in the directory so switching between branches doesn't cause build problems.