BohemianCoding/Sketch#3319 Script import: Add support for absolute and ~ paths

Import paths can be in the format:

    relative/to/script.js
    /absolute/path/to/script.js
    ~/relative/to/home/script.js

Ref BohemianCoding/Sketch#3319
can't you just do charAtIndex here?