add file actions only when OCA.Files is available

@PVince81 @georgehrke @raghunayyar a quick review pls