Make abspath use compact to remove nil from array