Modifing validation for paths

See LOGSTASH-942 for more info