add abspathx wrapper function which handles spaces in paths