Rename media_sync.sh to media_autorun.sh and enhance it