Fixes a part in autoreloading problem

https://github.com/celery/celery/issues/2249