Script break causes directory wipeout