Fix user script support

Closes #42.