Added check for empty music_dir