Extract the source path from the command line.
Support string interpolation in error messages.