Fix for dirname test