remove tail command(for compatibility with windows users)

Hi, romainberger!
I fixed wp generator for win users. it works perfect for me
and added check for "semver.valid".
Please check it, and tell me what you think)