improved git commit script
updated commit_directory script to use basename instead of path