Fix command-line argument handling

Also 'export' is not needed here.