added function to check if file is in use to disk cleaner