Keep old behaviour if `gitfs_root` is not set or is set to an empty string.
Merge pull request #6840 from s0undt3ch/hotfix/fix-gitfs-root

Keep old behaviour if `gitfs_root` is not set or is set to an empty string