make paths to resources relative to root