Bugfix: Fix g for cases with filepath with spaces