Fix execution-or-import check for windows

`basename` did not handle windows paths
Fixes #10