Fixed version mismatch in composer dependencies
Use localhost for MySQL connection; fixed typo for MacOSX detection
Added upload directory