Validate options and build file object.