Automatically set program name from command line arguments