Fix bug of calling directory.

Some applications are sensitive to the current working directory where they are called from.
Modified Yapa's behaviour to stop stay in the current directory when packaging.