Converted the groot alias to a function - Fixes error output with non-git directories.