Fixes for path support

1. fix auth functions to look at correct config var
2. include path in get_url