[fix] use the name specified not the app.name, fix #394

@blakmatrix please test and merge :)