Don't try to copy files from dirs that a plugin doesn't have.
Whoops, forgot a File.join here.
Fix JS compilation failure.
Merge pull request #1266 from MrJoy/commander

Plugin installer fails when a plugin doesn't have every directory type.