scripts: fix makeopts_env MAKEOPTS generation