Try to make autoreloader work on Linux and OS X