need to expand paths before checking existence