Create directory if event listener changed a path