normalizing pages array so regular objects or glob patterns can be loaded from the options