add flexibility to library placement by using relative files locations

Relative paths resolution, instead of assuming that necessary files are located in ext.restfullyii