Remove last pipe (excludeFromFile)

Remove last pipe when excludeFromFile is construct