Properly handle command line parameters (even with quotes and spaces)