Allow array of pathes in validate_absolute_path

I would be glad to see this PR accepted. Also see my other PR #323. Basically rebased things onto recent master and squashed stuff.