fix trimming of setup files

seems trim with a parameter does not strip off new line characters