limit the replacing of spec|app with app|spec to 1
Merge pull request #1 from cristianbica/master

Limit the replacing of spec|app with app|spec to 1, thanks