target .net 2.0
catch invalid path names, fix regex