fixed empty eggs directory detection; removed debug statements