ENYO-3573: remove useless split and self
ENYO-3573: add test if path starts with ./