fix wrong behavior for mediacontrol index.html
make serve task depend on build