Improved handling of paths with ./