Fix syntax errors in gem.files calculation