refine module build
add chrome support
using rimraf to remove directory recurisively
do install using fs lib