path: adding support for . in directoies