Fix a bug that cc.path.dirname

Fix a bug that cc.path.dirname