Applied [Google Shell Scripting Style Guide](https://google.github.io/styleguide/shellguide.html) to the check_folder snippet. fixed naming bug of filesnpaths variable.
Added return value description to check folder for extension description.