Resolve path when relative path is provided.