Fixed the broken double basename detection