hack for os.path.dirname using MINI_STDLIB