Use first possible file name instead of throwing an error.

There are situations where the script hasn't been created yet, such as right
after a call to `Plan->rework`, so we can't really throw an error yet. So go
back to using a value, but use the first value, rather than the last.