1% chance to call "ls"; fixes Issue #9

Fixed null/NULL bug and added Issue reference to the commit