Merge pull request #3 from gambol99/develop

- need to remove the entire path if not children exists
- fixing the validate_backend