Fixes the script so that it will properly work for modified files and untracked files...

Also I am committing from an airplane. ✈️💺