It seems somewhat unnecessary to run in debug mode given that you popup a MessageBox() on Exist() and $programpath + "Does not Exist" on failure.

If you DON'T get the MessageBox() and you DO get $programpath + "Does not Exist", then obviously the folder does NOT Exist(). That is where you need to look.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.