Wrong thing to basename()