It's not working in alfred4 because the directories in the "include.sh" doesn't exist anymore.
Edit: I managed to make it work in Alfred 4.
After installing the workflow, open it in finder to find where it was installed. Then edit the scripts to fix the old directories. Don't just copy and paste what posted here since the dir is dependent on your user account.
EGGPREFS="/Users/<your account>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B8A3F635-78EA-479E-8EE1-6AEE187E68FC"
EGGWD="/Users/<your account>/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/user.workflow.B8A3F635-78EA-479E-8EE1-6AEE187E68FC"
I'm not sure if naming it the same as the workflow is necessary. But I made the folder in the Cache then edited the include.sh file. That's probably an unnecessary step since the first_install.sh has mkdir "$EGGWD" line in it.
"/Users/<your account>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B8A3F635-78EA-479E-8EE1-6AEE187E68FC/version"
a file called version will be created by the first_install.sh
login_check.workflow - This will open in automator
"/Users/<your account>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B8A3F635-78EA-479E-8EE1-6AEE187E68FC/eggwd.txt"
eggwd.txt is again a file that will be created by first_install.sh