Fail if there are two spec files in directory

And merge the code with the same function for .gemspec files