Added relative path handling.