Determining webapp folder from startup script location.

Signed-off-by: Madhan Neethiraj <madhan@apache.org>