fix bug where basename was missing in path analysis.