Don't install rails gem with Ruby.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Defined better fallback for standard FHS systems.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
WARN: This version breaks $USER/Apps compatibility cause of change of user naming (name not uid). Major simplifications and code DRY. More in details.

* Switched to value of USERNAME from .conf.sh. It's much faster than spawning "id" N times.
* Removed unnecessary chown
* Fixed couple of minor bugs and repetitions.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Defined EGREP binary in .conf.sh

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>