Merged commit by slabua to support custom installation folder
Fixed document root bug