getting basename correctly on Windows too