Allow array of pathes in validate_absolute_path

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