Added line directives to generated scripts. Closes #103.