Use the more widely used version of basename (the only one supported by
MinGW)