Fix extra tokens at end of #endif directive