fixed linux path validation