extract Dir.glob
workaround of bundler usecase