[maintscripts] Check platform. Closes #17