Adding mkdir -p /var/run/mysqld right before the line containing mysqld_safe in setup.sh fixed the problem for me.