Replacement of 'git ls-files' with Dir.glob

[``* `#15067` FATAL: NOT A GIT REPOSITORY" WARNINGS``](https://www.openproject.org/work_packages/15067)

Using 'git ls-files' in *.gemspec is a bad practice. So I changed it to use 'Dir.glob'.