move back index

Signed-off-by: Micky Ching <mickyching@gmail.com>
rewrite build script

Signed-off-by: Micky Ching <mickyching@gmail.com>