Fixes for handling relative paths.

Signed-off-by: Frank Mertens <frank@cyblogic.de>