New RPATH logic (ready for review)



<!---
@huboard:{"order":669.5,"custom_state":""}
-->

Barring any comments I am just going to delete this test.