Cleaned up, fixed upload.php to be Unix-friendly