Refine deployment scripts