New plex_cleanup.sh: work in progress