Use cached user-data also on CloudStack
Handle context URL set in the environment
Remove double slashes from environment paths