update the already ugly regexp for matching page names
add an optional build tag to build a version of spock with bundled resources