Loading target pattern from file returns success/failure. Added missing include.

Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>