Implements custom depth for the front page and avoids access to parent folders when DATA is a subdirectory. Fixes issues #12 and #17