Alter deploy script for rails2 branch