Add configuration option for base directory to glob on

In some cases, the base directory to glob on isn't necessarily the one the HTML file is located in.