Change module existing check

Now you are checking hard-coded directory. But not everywhere modules are located there. This fix allows modules to be anywhere when it could be get using require function