Apply command line options
Script doesn't run, when you set dry_run option