Fix import_configuration via API ex. cron-job or command-line

Fix import_configuration via API ex. cron-job or command-line as seen on
line 1772 comment.