cleanup for relative and symlinks