format package strings when using -c option