fix path expansion/globbing with . and ..