Fix so the changed goal can be run in a repo with a directory called 'build'

* Added changed goal to register.py.
* Changed goal failed on mac (case insensitive filesystem) in one of our repos. Fixed so BuildFile can be opened on a dir called build that is not a build file. Added tests for it.

Reviewed at https://rbcommons.com/s/twitter/r/872/