getModulesEntryPoint = (packageName, old) => {
  const src = `${BASE_PATH}/packages/${packageName}/src`;
  const oldSrc = `${src}/modules`;

  return old ? `${oldSrc}/${findFileInPath(oldSrc, /index\..+/)}` : `${src}/${findFileInPath(src, /modules\..+/)}`;
}
Gets the path of the modules entry point.

@param packageName - The application package ([client|server])
@param old - The flag that describes if the command invoked for a new structure or not
@returns {string} - Returns the computed path