removed sorting from scandir as craps out with PHP < 5.4.0
added array_diff to remove extra cruft from scandir results
Merge branch 'refs/heads/hotfix#1' into develop