Fixing script error when running outside an sqs template. Fixes #31.