Parse all options before calling the step files generation

The command line options should be taken into account by the generator, in particular the -f option. As it is, the generator is called before setting the parameters, ignoring all of them.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.