Fix folder searching for versioned URLs

This fixes a bug that caused versioned URL strings to be used when searching for $folder$ placeholder objects.