Bug fixes on memaslap deployment script