Fixed basename() interprets backslashes on Windows only.