Fix bug in app directory creation.