Solving conditional to load file or module