Fixing a bug with the executable directory