Fixes #6311: cp the init.d file locally instead of remote

cp the init.d file locally instead of remote