resolve paths for passing to cwd