agent: Use FileInputStream for reading files instead of cat

Cat'ing a file and parsing that output is not reliable and this can be done
by using Java's native methods for that.
ucs: Fix ucs plugin's pom, removes xml marktag

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>