Add utility function to check if remote directory exists

Log into given <user>@<addr> and check if the given directory exists.
If exists print verbose which can be parsed from ssh verbose output.

Change-Id: I8339839700cbc99c3ef2a41bb45bd5fbd9acd15f
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>