fixed a couple of issues with copyright script: handle files less than 2 lines, bug introduced during cleanup