bugfix remove dir or file