change resource paths from absolute to relative