Add check for listing files out of jekyll root

It need for security reasons
Therefore I fix bug when directory contains files without extensions, for exmaple it might be nested directories