Shell script to auto commit a directory