Update Helper.php

Fix directoryToArray using DIRECTORY_SEPARATOR