Backport !545
improved ftp regex for shorter directory
for example: /www/0/1 this directory throws directory_error_regex, that's why 7
See merge request !545 (merged)
(cherry picked from commit a9e7cc14)
f8635ed3 10 => 7
Edited by Marius Burkard