updated FileUtil to handle relative paths as public root