Fix passing "." as current dir.