identifyFileFormat: quote arguments

The arguments were being misinterpreted in the case that
relativeLocation contained a space.

Fixes #7150.