add \n at the end of compressed gz files to prevent empty compressed gz files
removing an unneeded '#if'