Automatically detect application name and application root. Posibility to override with env vars