Fixing the regex for splitting file names during commit