Bug fix for -o commandline argument