修正前端资源自动部署算法

Signed-off-by: Richard Lea <chigix@zoho.com>