Fix copy of .java files being put in the wrong place.

Apparanetly sh.cp('-r') treats dst as a directory instead of having the
same behaviour as cp on the command line.
clonePluginGitRepo provides the dir of cloned plugin as callback param. propagates back to install module during a install->fetch->install flow.