Check from file

Make linkey work from a file for easier automation and smoke testing
![mlast](https://f.cloud.github.com/assets/1492067/2501972/15c91998-b372-11e3-86eb-57049cd48916.gif)