ACCUMULO-2891 check for masters file before grep

Check that file exists
Before we try to open it
Be one with all things
Merge branch '1.6.1-SNAPSHOT'