Fixed bracket error, add mv and chmod.