Only can use addpath if this is not an EXE.

This is required when running this as an EXE.