all variations of curdir are removed before adding the basedir now