Ensuring empty target path does not result in undesirable destination