Added better way to handle relative library paths