Make conditional set of scriptName more clear.