fixed the autoreload, should work now on linux and windows