Added get_sitepath() method and logic for defining the SITEPATH constant