fix some issues in Koding script