Fix the removal of scm dot directories with -prefix