Adding defensive techniques to prevent uncontrolled file movement