added support for multiple script paths. Hopefully it works