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

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