updated commit script - directory