return a file object instead of the path in case the strip option is used

prevents a call to file.path returns undefined