Use SCRIPT_ID_DELIMITER for handling view indexes

Import * from config in a few more places, to get it.