Added depth limit

In case there are files further down the directory structure that would make it fail.