Script is written to handle it's own dependencies so it can be used within Docker or on the host system
Update Docker build script accordingly. Also fix permission issue with docker build (all files belonged to root).