added replace of relative require ids on deploy; fix escape and compress order