Added a minor bugfix, ln 379 need a / for the scandir