Fix issue with incorrect names being passed to -c option