WFLY-1913 fixing a regression in the resource path for CLI deployment archive

Fixing a regression in the resource path of 'module add' command and adding a test-case for it.

https://issues.jboss.org/browse/WFLY-1913