scons: fix path remove to be less aggressive