Fix disabled application configured

I have fixed the problem on #93.

I have tested on CentOS 6, CentOS 7, Ubuntu 14.04.
[Vagrant log patched with #95](https://gist.github.com/otahi/94233196bfb54145c732)