The path of a main VI changes after it is compiled into executable. For example, the original VI is at
c:\temp\test\main.vi,
after building it into executable (say the executable directory is exe), the path to main.vi then changes to
c:\temp\test\exe\main.exe\main.vi
Sometimes in order to correctly reference some relative information, the "main.exe" need to be removed from the path. If you are accessing main.vi at development time, then the correct path should be the longer one during runtime.
-Joe