Use "static" instead of "global" for $filesystem in getFilesystemDefault()
Merge pull request #1339 from njam/issue-1339

Fix getFilesystemDefault caching