Resolving bug where phpass failed to load if user has customized 3rdpart...

...y root via config file. Also updating constants paths to reflect correct paths/urls and making if logic on 135 uniform with rest of the system

Fixing https://github.com/owncloud/core/issues/5150