Makes "brew audit" happy

* remove one trailing space
* use #{man1} instead of #{man}/man1
Address sjackman's comments

* use Formula.factory instead of hard coded path for boost
* use inreplace instead of sed