Avoid PHP Strict error `Creating default object from empty value`.
Add method `getUserPath`.
Merge pull request #1 from simonwheatley/master

Fixed PHP Strict error and added getUserPath method