Fix multiple target patterns error on 1st run
Sed expr works in GNU sed not osx, use PHP instead
Improve R build

- Do not conflict with another installation of R
- Enable readline support for a better experience
- Permit profiling
Merge thehyve/master into thehyve/london_hackathon

Conflicts:
	env/Makefile