Adding write permissions to the rebuild.sh script because some environme...

...nts did not allow the rm statement to execute due to folder perms