make paths relative to dir