made postbuild event work only under windows