bitbake/fetch2: workaround urlparse in older python not support git

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
utils: Improve remove funciton to handle whitespace

Improve the remove function to better handle cases where path contains
special shell chars like whitespaces, '$', ';' or'\'.

Thanks to Enrico Scholz for the fix.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>