Support for file:// path for STI scripts and fix for Go panic