adding port to dirname