Support local file path arguments.

This is based on an idea from Leigh Mannes (https://github.com/notleigh)