Only downcase slug if it is present.

Some of the older command line clients don't send the path info along,
only the file.