Directly use the APPDIR envvariable to know we are running in a bundle