Fix getcwd() issue - now current working directory is a state of EnvironmentDetail singleton
Do not limit nesting level of exceptions
Set final configuration for agent transport
Fix some TODOs