Retrieve path via config_get_global for performance

Following @atrol's comment @ https://github.com/mantisbt/mantisbt/pull/357

Use config_get_global over config_get for non-database 'path' configuration
variable