Fix relative path bug of compass.