Fix build script
Add option parsing