Fix build and clean scripts to access platform argument.