No trailing file-sep on windows dirs

A good chance this is not needed on linux/mac either.
Fix adding mean to generated prediction code