Fixing cmd.run creates directive

When the cmd.run creates directive is specified the file is not actually created.