Add check that PREFIX is not the source directory, which doesn't work.