made the script wait for spotify to be ready (if it exists)