Fixed ask prompting multiple times for the same script

Fixes #123.