Fixes #4080, FileHelper::removeDirectory() symlinks handling enhancements

Fixes #4080:

1. Added proper handling and support of the symlinked directories.
2. Added $options parameter.