fix for os.isdir not supporting trailing slash on windows, fix package loader pathing for new bin directory structure