Refactor setMoudlePath method to be much more useable