change absolute dir for relative dir