...
That is way you should always strive to stay away from core files when building a module, even though this can prove hard to do in some situations...
Module file tree
All PrestaShop modules are found in the /modules
folder, which is at the root of the PrestaShop main folder. This is true for both default modules (provided with PrestaShop) and 3rd-party modules that are subsequently installed.
...