make sure paths with spaces or special chars are handled properly