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.
Merge pull request #520 from aSeptik/patch-1

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