add init function to check bower command and vender folder exist

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>