bug 855003 -- calculate the 'out' directory using the build system for packaging emualtor