adds path.normalize for filename so its resolved