cd to LIBDIR at first-time generation

winograd.py needs it