Adjust hostname and app path, remove Setenv