Fixed build script for sites with no match regexp