Auto-detect installation prefix in resource_manager

So it is not needed to copy-paste the detection code in every applications