Changing the location of the installed module which is installed will return error. To do this you have to rebuild the APC cache. Try the one of the following steps after changing the module location.
Clear cache using drush
drush cr all
- Try to hit your sites rebuild.php in your browser.
- Restart apache.