Stop using hardcoded path, and make sure the dir exists before scanning it