Fixed condition for packages with no basePath and baseUrl set