Updating bootstrap.sh for Docker 1.0.0

Also make it more compatible with other PATH environments.