ndmpd should not put \n into NDMP logmessages.
Fix compile error.
Fix ndmp_data_get_env calls.

According to the RFC the ndmp_data_get_env call must return the
environment variables after both an backup and restore session. The old
implementation would only allow it after a backup.