Hopefully fixed git function to handle files with spaces