Make plugin understand commands that expect a file input