fix order issue with script creation

It should only be laid down after the
tempest directory exists.