Fix bug in --nameattr handling
Merge pull request #15 from timbunce/linking2

Fix bug in --nameattr handling