handle relative path in options