correction to the logic on when the files should be relative