Migration depoloyment - fix paths and sudo.