Remove a random puts
Always initialise @doing_file properly

When specifying a doing_file on the command line, the @doing_file
variable was not initialised properly.

Also, we separate the doing_file initialisation from the WWID
initialisation. This way WWID is only created once.