Fixed inconsistencies in file actions shown in menus according to the target file state