[BUGFIX] Fixed issue #197 - Doesn't run when /tmp/magento/var exists and database is not created / tables missing