Binpkg: fix os.path.dirname() usage