Added install directory detection

Added a feature where the installer detects where the CMS is going to be
installed. This is handy for people who mess up their installs by not
putting in a correct path.