Don't copy input file for GS if not necessary, length variable name fix