Made changes to installer

Removed the "change-data-dir-permissions-code" and instead implemented a
check to see if data-dir and db-file are writable before installation
can begin. Chmod() doesn't seem to be working right on BTH server?