Fixed some install issues.  Check config and writable existence refactored, checking for defined constant and vars in index.php