Check if file to be moved is in a ignored directory