If passed -w as the second argument, make the changes in the file

Signed-off-by: Jani Monoses <jani@ubuntu.com>