CORSIKA relies on presence of data modules in source tree
A piece of software should never rely on the presence of the source tree to be able to run. Typically, the source tree will get removed after installation, at least in a a typical produciton environment. Or might not be mounted on a compute node in a cluster. Data files have to be copied into the install tree.